<?php

class Models_DoctorsPatients
        extends Zend_Db_TAble_Abstract {

    protected $_name = 'DoctorsPatients';
    protected $_primary = array(
        'PatientId',
        'DoctorId'
    );
    protected $_referenceMap = array(
        'Doctors' => array(
            'columns' => 'DoctorId',
            'refTableClass' => 'Models_Doctors',
            'refColumns' => 'UserId'
        ),
        'Patients' => array(
            'columns' => 'PaientId',
            'refTableClass' => 'Models_Patients',
            'refColumns' => 'UserId'
        )
    );

}